package com.yn.xgame.logic.player;

import com.yn.xgame.pb.GateClientProto;

public class BackPack {//背包
	private int cc_id;
	private int user_id;
	private String cc_money;
	private String cc_status;
	private int cc_created;

	public int getCc_id() {
		return cc_id;
	}

	public void setCc_id(int cc_id) {
		this.cc_id = cc_id;
	}

	public int getUser_id() {
		return user_id;
	}

	public void setUser_id(int user_id) {
		this.user_id = user_id;
	}

	public String getCc_money() {
		return cc_money;
	}

	public void setCc_money(String cc_money) {
		this.cc_money = cc_money;
	}

	public String getCc_status() {
		return cc_status;
	}

	public void setCc_status(String cc_status) {
		this.cc_status = cc_status;
	}
	public int getCc_created() {
		return cc_created;
	}
	public void setCc_created(int cc_created) {
		this.cc_created = cc_created;
	}

	public BackPack() {
		super();
	}

	public BackPack(int cc_id, int user_id, String cc_money, String cc_status, int cc_created) {
		super();
		this.cc_id = cc_id;
		this.user_id = user_id;
		this.cc_money = cc_money;
		this.cc_status = cc_status;
		this.cc_created = cc_created;
	}

	@Override
	public String toString() {
		return "BackPack [cc_id=" + cc_id + ", user_id=" + user_id + ", cc_money=" + cc_money + ", cc_status="
				+ cc_status + ", cc_created=" + cc_created + "]";
	}

	public GateClientProto.UserBackPack.BackPack build() {
		return GateClientProto.UserBackPack.BackPack.newBuilder()
			.setCcId(cc_id)
			.setCcMoney(cc_money)
			.setCcStatus(cc_status)
			.setUserId(user_id)
			.build();
		
	}

	
}
